import request from '@/utils/request'

// 下单
export function terminalInfo(data) {
  return request({
    url: 'order/orderTerminalInfo/terminalInfo',
    method: 'post',
    data,
  })
}
// AmazonCode
export function amazonCodeList(data) {
  return request({
    url: 'system/amazonCode/querySysAmazonCodeList',
    method: 'post',
    data,
  })
}
// 海外仓订单列表查询
export function listTable(params) {
  return request({
    url: 'order/orderTerminalInfo/listTable',
    params,
  })
}
// 订单详情接口
export function getOrderDetail(id) {
  return request({
    url: `order/orderTerminalInfo/orderDetail/${ id }`,
    method: 'get',
  })
}
// 订单详情接口
export function getReback(id) {
  return request({
    url: `order/orderTerminalInfo/${ id }`,
    method: 'delete',
  })
}
// 海外仓撤单
export function delOrderTerminalInfo(id, data) {
  return request({
    url: `order/orderTerminalInfo/${ id } `,
    method: 'delete',
    data,
  })
}

export function updateOverseasWarehouse(data) {
  return request({
    url: '/order/orderTerminalInfo/updateOverseasWarehouse',
    method: 'put',
    data,
  })
}
// 应收费
export function receivableList(params) {
  return request({
    url: 'finance/receivable/list',
    params,
    
  })
}
// xingzeng
export function addFee(data) {
  return request({
    url: 'finance/receivable',
    method: 'post',
    data,
  })
}
export function updateFee(data) {
  return request({
    url: '/finance/receivable/updateSysExpensesReceivableDetailsById',
    method: 'post',
    data,
  })
}
export function deleteFee(ids) {
  return request({
    url: `finance/receivable/${ ids }`,
    method: 'delete',
  })
}
export function queryPackageDetailsList(data) {
  return request({
    url: 'order/package/details/queryPackageDetailsList',
    method: 'post',
    data,
  })
}
